/**
 * @author nttdocomo
 */
define(function(require) {
	require("../util/mixedCollection");
	aries.klass('aries.form.CheckboxManager', aries.util.MixedCollection.extend({
		singleton : true,

		getByName : function(name) {
			return this.filterBy(function(item) {
				return item.name == name;
			});
		},

		getWithValue : function(name, value) {
			return this.filterBy(function(item) {
				return item.name == name && item.inputValue == value;
			});
		},

		getChecked : function(name) {
			return this.filterBy(function(item) {
				return item.name == name && item.checked;
			});
		}
	}))
})
